package com.lsmw.ucenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsmw.commonutils.R;
import com.lsmw.ucenter.entity.LsUCenterMember;
import com.lsmw.ucenter.entity.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 二号男嘉宾
 * @since 2020-12-24
 */
public interface LsUCenterMemberService extends IService<LsUCenterMember> {
    String login(LsUCenterMember member);

    boolean register(RegisterVo registerVo);

    LsUCenterMember getMemberInfo(HttpServletRequest request);

    /**
     * 普通管理员根据昵称模糊查询(不排除逻辑删除条件)
     * @param nickname
     * @return
     */
    R findMembersByNickname_Admin(String nickname);

    /**
     * 超级管理员根据昵称模糊查询（排除逻辑删除条件）
     * @param nickname
     * @return
     */
    R findMembersByNickname_superAdmin(String nickname);

    /**
     * 管理员根据会员id删除会员
     * @param memberId
     * @return
     */
    R deleteMemberById(String memberId);

    /**
     * 管理员根据多个会员id删除会员
     * @param memberIds
     * @return
     */
    R deleteMemberByIds(List<String> memberIds);

}
